<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<link href="<?php echo SKIN_PATH;?>video.css" rel="stylesheet" type="text/css" />
<div id="submenu"><?php echo tag('phpcms', 'tag_category_submenu', "", 0, 0, array (  'module' => 'phpcms',  'catid' => $catid,  'class' => 'url',  'target' => '_blank',));?></div>
<!--begin main-->
<div id="main">
  <!--begin left-->
  <div id="mian_l_1">
   <div class="video_nav_top ">
      <h3>影片搜索</h3>
    </div>
    <div class="video_nav">
    <form name="search" action="<?php echo SITE_URL;?>search.php" method="get" target="_blank">
    <input type="hidden" name="modelid" value="<?php echo $modelid;?>"  />
      <ul id="video_search">
        <li>
          <input type="text" name="title" size="19" />
          <input type="submit" name="dosubmit" value="搜索" class="btn_blue" />
        </li>
      </ul>
      </form>
    </div>
    <div class="video_nav_btm"></div>
    <div class="video_nav_top mar_10">
      <h3>影片索引</h3>
    </div>
    <div class="video_nav">
       <?php if($catlist) { ?>
      <dl>
        <dt><a>按类型</a></dt>
        <dd>
        <?php if(is_array($catlist)) foreach($catlist AS $c) { ?>
        	<a href="<?php echo $c['url'];?>"><?php echo $c['catname'];?></a>
        <?php } ?>
        </dd>
      </dl>
  <?php } ?>
      <div class="clear"></div>
      <dl>
        <dt><a>按地区</a></dt>
        <dd><?php if(is_array($AREA)) foreach($AREA AS $a) { ?>
<?php if($a[parentid]==1) break;?>
<a href="area.php?areaid=<?php echo $a['areaid'];?>&catid=<?php echo $catid;?>"><?php echo $a['name'];?></a>
    <?php } ?></dd>
      </dl>
      <div class="clear"></div>
      </div>
    <div class="video_nav_btm"></div>
   
    <div class="video_nav_top mar_10">
      <h3>影视排行</h3>
    </div>
    <div class="video_nav">
      <ul class="text_list_1">
       <?php $arrchild = $CATEGORY[$catid][arrchildid]?>
      <?php $DATA = get("SELECT title, catid, url FROM phpcms_content a, phpcms_content_count b WHERE a.contentid=b.contentid AND a.status=99 AND a.catid IN ($arrchild) ORDER BY b.hits", 10, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
     <li><a href="<?php echo $CATEGORY[$r['catid']]['url'];?>" class="gray">[<?php echo $CATEGORY[$r['catid']]['catname'];?>]</a><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a> </li>
      <?php } unset($DATA); ?>
      </ul>
      <span></span> </div>
    <div class="video_nav_btm"></div>
  </div>
  <div id="mian_r_1">
     <div class="bdr_1">
     <p id="position"><a href="">首页</a><?php echo catpos($catid);?></p>
      <?php echo tag('phpcms', 'tag_content_videolist', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,userid,updatetime,inputtime,islink,url FROM `phpcms_content` WHERE  status=99  ".get_sql_catid($catid)." ORDER BY contentid DESC", $page, 10, array (  'dateformat' => 'Y-m-d',  'target' => '_blank',  'titlelen' => '46',  'width' => '100',  'height' => '75',), $catid);?>
      </div>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>